package com.hh.service.dao.socialize;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hh.common.model.socialize.UserSocializeConfig;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface UserSocializeConfigDao extends BaseMapper<UserSocializeConfig> {
    @Select("select * from eb_user_socialize_config where id = 1")
    UserSocializeConfig getConfig();

    @Update("update eb_user_socialize_config set number_view = number_view + 1 where id = 1")
    void increaseView();

    @Update("update eb_user_socialize_config set number_like = number_like + 1 where id = 1")
    void increaseLike();
}
